angular.module('app').directive('appTab',[function(){
	return{
		
	restrict:'A',
	replace:true,
	scope:{
		list:'=',
		tabClick:'&'
	},
	templateUrl:'views/template/tab.html',
	link:function($scope){
		$scope.click = function (tab){
			$scope.selectId = tab.id;
			$scope.tabClick(tab);

		}
	}
	}
}])